package com.esint;

import redis.clients.jedis.Jedis;

/**
 * @description: redis测试类
 * @author: 谷明
 * @createDate: 2021/8/11 23:31
 */
public class TestPing {
    public static void main(String[] args) {
        //这里我连接的是我虚拟机的redis
        Jedis jedis = new Jedis("192.168.43.166", 6379);

        System.out.println(jedis.ping());
    }
}
